package stackoverflow.data;

import java.util.List;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import stackoverflow.domain.question.Question;
import stackoverflow.domain.question.QuestionRepository;


public class DataLayerAPI
{
	private static final String[] SPRING_CONFIG_FILES = new String[]{"spring.xml"};

	public static void main(String[] args)
	{
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(SPRING_CONFIG_FILES);
		QuestionRepository questionRepository = (QuestionRepository)context.getBean("questionRepository");
		List<Question> question = questionRepository.findAll();
	}

	
	
}
